<template>
  <div>
    <h2>v-for指令</h2>
    <ul>
      <li v-for="(item, index) in list" :key="item.id">
        {{ index + 1 }} -- {{ item.id }} -- {{ item.name }} -- {{ item.nickname }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { id: 200, name: '夏从政', nickname: '一只猪' },
        { id: 400, name: '夏从政', nickname: '是呆子' },
        { id: 528, name: '夏从政', nickname: '是修狗' }
      ]
    }
  }
}
</script>

<style>

</style>